/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package muhnes.sizoo.dal;

import muhnes.sizoo.modelo.Rol;
import org.hibernate.SessionFactory;

public class RolDaoImpl extends GenericoDAO< Rol, Integer > implements RolDao {
    
    public RolDaoImpl( SessionFactory creadorSesiones ) {
        super( creadorSesiones );
    }

    @Override
    protected String getConsultaPorId(Integer id) {
        return "from Rol where codigorol = " + String.valueOf(id);
    }

    @Override
    protected String getConsultaPorEntidad() {
        return "from Rol";
    }
    
}
